package com.automannn.springPractice.zStudy;

import com.automannn.springPractice.applicationContext.GenericXmlApplicationContextTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author weave
 * @since 2024-06-17 18:25
 */
public class SpringStudyTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:xmlApplication.xml");
        GenericXmlApplicationContextTest.A myA = (GenericXmlApplicationContextTest.A)applicationContext.getBean("myA");
        System.out.println(myA);
    }
}
